<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>left</title>
<style type="text/css">
* {
	font-size: 10pt;
	text-align: center;
}

div {
	background: #87CEFA;
	margin: 3px;
	padding: 3px;
}

a {
	text-decoration: none;
}
</style>
</head>
<body>
	<div>
		<a href="<c:url value='/BookServlet?method=findAll'/>" target="body">全部分类</a>
	</div>

	<c:forEach items="${categoryList }" var="category">
		<div>
			<a href="<c:url value='/BookServlet?method=findByCategory&cid=${category.cid }'/>" target="body">${category.cname}</a>
		</div>
	</c:forEach>
</body>
</html>